<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Page
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: index.tpl 2010-08-31 17:53 idris $
 * @author     Idris
 */
?>

<?php echo $this->render('_pageMainNavigation.tpl'); ?>

<?php if ($this->markers && $this->paginator->getTotalItemCount() > 0): ?>
<?php echo $this->gmap_js; ?>
<?php endif; ?>

<script type="text/javascript">
<?php if ($this->markers && $this->paginator->getTotalItemCount() > 0): ?>
window.addEvent('domready', function(){
	pages_map.construct( null, <?php echo $this->markers; ?>, 4, <?php echo $this->bounds; ?> );
});
<?php endif; ?>
page_manager.ajax_url = '<?php echo $this->url(array(), 'page_browse'); ?>';
page_manager.page_num = <?php echo $this->page_num; ?>;
page_manager.init();
page_manager.field_ids = <?php echo $this->field_ids ?>;
</script>

<div class="layout_right">
<?php echo $this->filterForm->render($this); ?>
<br />

<?php echo $this->render('_popularLocations.tpl'); ?>
<?php echo $this->render('_popularCategories.tpl'); ?>
<?php echo $this->render('_popularTags.tpl'); ?>
</div>

<div class='layout_middle' id="page_list_container"><?php echo $this->render('index/browse.tpl') ?></div>
<div class="clr"></div>